<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./vue.js"></script>
</head>

<body>
  <div id="app">
    <common-head></common-head>
  </div>
  <script>

    Vue.component('common-head', {
      render(createElement) {
        return createElement('div', {
          style: {
            color: 'red',
            fontSize: '14px'
          },
        },
          [
            'helloworld',
            createElement('h1',{}, '一则头条'),
          ]

        )
      }
    })

    var vm = new Vue({
      el: "#app"
    })

  </script>
</body>

</html>